<?php
	require_once("../WdtClient.php");
	$sid = config('services.wdt.sid');
	$appkey = config('services.wdt.appkey');
	$secret = config('services.wdt.secret');
	$url = config('services.wdt.url');

	$c = new \WdtClient;
	$c->sid = $sid;
	$c->appkey = $appkey;
	$c->appsecret = $secret;
	$c->gatewayUrl = 'https://sandbox.wangdian.cn/openapi2/api_goods_stock_change_query.php';

	//添加查询参数
	$c->putApiParam('shop_no','api_test');
	$c->putApiParam('limit',100);
	$json = $c->wdtOpenApi();
	var_dump($json);
?>